<div class="partners form">
<?php echo $this->ExtendedForm->create('Gallery', array('novalidate' => 'novalidate'));?>
	<h3><?php echo __d('admin', 'Edit Gallery'); ?></h3>
	<?php
		if(isset($this->request->params['named']['gallery_id'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('gallery_id', array_merge(array('label' => __d('admin', 'Gallery'))));
		if(isset($this->request->params['named']['gallery_id'])) echo '</div>';
		
		if(isset($this->request->params['named']['name'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('name', array_merge(array('label' => __d('admin', 'Name'))));
		if(isset($this->request->params['named']['name'])) echo '</div>';

		if(isset($this->request->params['named']['name_eng'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('name_eng', array_merge(array('label' => __d('admin', 'Name Eng'))));
		if(isset($this->request->params['named']['name_eng'])) echo '</div>';
		
		if(isset($this->request->params['named']['name_jpn'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('name_jpn', array_merge(array('label' => __d('admin', 'Name Jpn'))));
		if(isset($this->request->params['named']['name_jpn'])) echo '</div>';
		
		if(isset($this->request->params['named']['image'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('image', array_merge(array('type' => 'image', 'label' => __d('admin', 'Image'))));
		if(isset($this->request->params['named']['image'])) echo '</div>';

	?>
<?php echo $this->ExtendedForm->end(array('label' => __d('admin', 'Save Partner'), 'class' => 'btn btn-primary', 'div' => false, 'before' => '<div class="form-group">', 'after' => "\n" . $this->Html->link(__d('admin', 'Cancel'), $redirectUrl, array('class' => 'btn btn-default')) . '</div>'));?>
</div>